package com.qiyang.turbine;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.netflix.turbine.EnableTurbine;

/**
 * Created on 2018/5/8.
 *
 * @author sehuaqi.
 * 描述：
 */
@SpringBootApplication
@EnableTurbine
@EnableHystrix
@EnableHystrixDashboard
public class TurbineApp {

    private static Logger log = LoggerFactory.getLogger(TurbineApp.class);

    public static void main(String args[]) {
    	//执行函数
        SpringApplication.run(TurbineApp.class,args);

        log.info("熔断监控服务启动完毕");
    }
}
